//
//  Definitions.h
//  SmartRebate
//
//  Created by Yuan on 13-2-28.
//  Copyright (c) 2013年 unionpaysmart.com. All rights reserved.
//

#define HYLocalizedString(string) NSLocalizedString(string, nil)

#ifdef DEBUG_MODE
#define HYLog(s, ... )   NSLog(@"<%p %@ %s:(%d)>%@",self,[[NSString stringWithUTF8String:__FILE__] lastPathComponent],__FUNCTION__,__LINE__,[NSString stringWithFormat:(s),##__VA_ARGS__])
#else
#define HYLog( s, ... )
#endif

#define HYSafeRelease(__v) ([__v release], __v = nil);

#define FONT_SMALL [UIFont systemFontOfSize:12.0]

#define FONT_SMALL_BOLD [UIFont boldSystemFontOfSize:12.0]

#define FONT_NORMAL [UIFont systemFontOfSize:14.0]

#define FONT_NORMAL_BOLD [UIFont boldSystemFontOfSize:14.0]

#define FONT_MIDDLE [UIFont systemFontOfSize:16.0]

#define FONT_MIDDLE_BOLD [UIFont boldSystemFontOfSize:16.0]

#define FONT_TITLE [UIFont boldSystemFontOfSize:20.0]

#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

//web服务地址
#define WEBSERVICE_URL @"http://www.unionpaysmart.com/"

//超时时间
#define WEBSERVICE_TIMEOUT 10

extern NSString * const ThemeDidChangeNotification;

#define APP_DELEGATE (AppDelegate*)[[UIApplication sharedApplication]delegate]


